<?php
/**
 * 
 *
 * PHP version 5.3.x
 *
 * @category 
 * @package  
 * @author   gouki <gouki.xiao@gmail.com>
 */

/**
 * SaeStatePersister.php
 *
 * @category 
 * @package  
 * @author   gouki <gouki.xiao@gmail.com>
 * @version $Id$ 
 * @created 2011-11-23 09:21
 */ 
class SaeStatePersister extends CStatePersister{
    public function init(){
        parent::init();
        var_dump($this->stateFile);
    }
	/**
	 * Saves application state in persistent storage.
	 * @param mixed $state state data (must be serializable).
	 */
	public function save($state){
		$saeStorage = new SaeStorage();
        $saeStorage->write(SaeCommon::getSaeStorage('runtime'),$this->stateFile,serialize($state));
		//file_put_contents($this->stateFile,serialize($state),LOCK_EX);
	}
}
